verbose-tests
authorAndreas Henriksson <andreas@fatal.se>
Wed, 30 Jul 2014 12:28:17 +0000 (14:28 +0200)
committerAndreas Henriksson <andreas@fatal.se>
Sun, 12 Aug 2018 05:11:02 +0000 (06:11 +0100)
Enable verbose tests and print content of failing tests output file.

Gbp-Pq: Name verbose-tests.patch

tests/Makemodule.am
tests/functions.sh

index 61798c98efeb8dcf3cd0a346ec256f51659dc39e..7765cd5f6b6c258003a547f5243b37f452ba533a 100644 (file)
@@ -13,7 +13,7 @@ clean-local-tests:
 
 CLEAN_LOCALS += clean-local-tests
 
-TS_OPTS = --nonroot
+TS_OPTS = --nonroot --verbose --parallel=1
 TS_COMMAND = $(top_srcdir)/tests/run.sh \
        --srcdir=$(abs_top_srcdir) --builddir=$(abs_top_builddir) \
        --parallel $(TS_OPTS)
index 2fb0ddb5f42459d032da70b3a59676f0dbb43d24..48379f25bb8a7eed86222410db41b6b9030101a8 100644 (file)
@@ -132,6 +132,17 @@ function ts_failed_subtest {
                ts_report " $msg ($1)"
        fi
 
+       if [ "$TS_VERBOSE" = "yes" ]; then
+               echo ========= script: $TS_SCRIPT =================
+               echo ================= OUTPUT =====================
+               cat -n $TS_OUTPUT
+               echo ================= EXPECTED ===================
+               cat -n $TS_EXPECTED
+               echo ================= O/E diff ===================
+               diff -u $TS_OUTPUT $TS_EXPECTED
+               echo ==============================================
+       fi
+
        return $ret
 }